home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / Examples / AppKit / TravelAdvisor / Country.h < prev    next >
Encoding:
Text File  |  1996-01-03  |  1.1 KB  |  47 lines

  1.  
  2. #import <AppKit/AppKit.h>
  3. #import <Foundation/Foundation.h>
  4.  
  5. @interface Country : NSObject <NSCoding>
  6. {
  7.     NSString *name;
  8.     NSString *airports;
  9.     NSString *airlines;
  10.     NSString *transportation;
  11.     NSString *hotels;
  12.     NSString *languages;
  13.     BOOL     englishSpoken;
  14.     NSString *currencyName;
  15.     float currencyRate;
  16.     NSString *comments;
  17. }
  18.  
  19. - (id)init;
  20. - (void)dealloc;
  21. - (void)encodeWithCoder:(NSCoder *)coder;
  22. - (id)initWithCoder:(NSCoder *)coder;
  23.  
  24. /* accessor methods */
  25. - (NSString *)name;
  26. - (void)setName:(NSString *)str;
  27. - (NSString *)airports;
  28. - (void)setAirports:(NSString *)str;
  29. - (NSString *)airlines;
  30. - (void)setAirlines:(NSString *)str;
  31. - (NSString *)transportation;
  32. - (void)setTransportation:(NSString *)str;
  33. - (NSString *)hotels;
  34. - (void)setHotels:(NSString *)str;
  35. - (NSString *)languages;
  36. - (void)setLanguages:(NSString *)str;
  37. - (BOOL)englishSpoken;
  38. - (void)setEnglishSpoken:(BOOL)flag;
  39. - (NSString *)currencyName;
  40. - (void)setCurrencyName:(NSString *)str;
  41. - (float)currencyRate;
  42. - (void)setCurrencyRate:(float)val;
  43. - (NSString *)comments;
  44. - (void)setComments:(NSString *)str;
  45.  
  46. @end
  47.